package dk.dashboardFP.dfpLogger.logReceivers {
	import org.osflash.thunderbolt.Logger;
	import dk.dashboardFP.dfpLogger.DFPLoggerLevels;

	/**
	 * @author josef
	 */
	public class ThunderBoltReceiver implements ILogReceiver {

		public function log(sMessage : String, oObject : Object = null, intLevel : int = 0, oExtraReceiversParms : Object = null) : void {
			switch(intLevel) {
				case DFPLoggerLevels.INFO:
				Logger.info(sMessage, oObject);
					break;
				
				case DFPLoggerLevels.DEBUG:
					Logger.debug(sMessage, oObject);
					break;
				
				case DFPLoggerLevels.WARN:
					Logger.warn(sMessage, oObject);
					break;
					
				case DFPLoggerLevels.ERROR:
					Logger.error(sMessage, oObject);
					break;
			}
		}
	}
}
